package com.aaa.choose.service.impl;
import com.aaa.choose.dao.selectShopDao;
import com.aaa.choose.service.SelectAreaService;
import com.aaa.entity.Shop;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wys
 * @version 1.0
 * @date 2023/3/6 10:42
 */
@Service
public class SelectAreaServiceImpl implements SelectAreaService {

    @Autowired
    private selectShopDao selectShopDao;


    @Override
    public Result selectShop(Integer areaId) {
        List<Shop> shops = selectShopDao.selectByAreaId(areaId);
        return new Result(200,"查询成功",shops);
    }
}
